<template>
	<div>
		<!-- xpert导航栏 -->
		<xpertNavBar :statusTab="statusTab" />
		<div style="height: 150px; width: 100%"></div>
		<!-- Help & Support -->
		<div class="help">Help & Support</div>
		<!-- div -->
		<div class="helpDiv m1280 f f-a-c f-j-b">
			<div @click="goOrder" class="helpItem hand f f-d-c f-j-c f-a-c">
				<div class="imgBox">
					<img src="/src/assets/user/31.png" class="supImg" alt="" />
				</div>
				<div class="order">Order management</div>
			</div>
			<div @click="FeedHelp" class="helpItem hand f f-d-c f-j-c f-a-c">
				<div class="imgBox">
					<img src="/src/assets/user/38.png" class="supImg" alt="" />
				</div>
				<div class="order">Help</div>
			</div>
			<div @click="goSystem" class="helpItem hand f f-d-c f-j-c f-a-c">
				<div class="imgBox">
					<img src="/src/assets/user/32.png" class="supImg" alt="" />
				</div>
				<div class="order">System</div>
			</div>
			<div @click="Feedback" class="helpItem hand f f-d-c f-j-c f-a-c">
				<div class="imgBox">
					<img src="/src/assets/user/33.png" class="supImg" alt="" />
				</div>
				<div class="order">Feedback</div>
			</div>
		</div>
		<!-- faq -->
		<div class="faq">
			<div class="faqTop">FAQ</div>
			<div class="faqBody">
				<div class="faqItem hand f f-a-c f-j-b p-l-10 p-r-10">
					<div class="countNei">How do I track my order?</div>
					<img src="/src/assets/user/2.png" class="img" alt="" />
				</div>
				<div class="faqItem hand f f-a-c f-j-b p-l-10 p-r-10">
					<div class="countNei">How to renew or upgrade your account?</div>
					<img src="/src/assets/user/2.png" class="img" alt="" />
				</div>
				<div class="faqItem hand f f-a-c f-j-b p-l-10 p-r-10">
					<div class="countNei">What is Knowclub?</div>
					<img src="/src/assets/user/2.png" class="img" alt="" />
				</div>
				<div class="faqItem hand f f-a-c f-j-b p-l-10 p-r-10">
					<div class="countNei">Can I change my view to any currency type that I want ?</div>
					<img src="/src/assets/user/2.png" class="img" alt="" />
				</div>
				<div class="faqItem hand f f-a-c f-j-b p-l-10 p-r-10">
					<div class="countNei">Using your Xpert balance and how it is applied?</div>
					<img src="/src/assets/user/2.png" class="img" alt="" />
				</div>
				<div class="more hand">More</div>
			</div>
		</div>
		<UpLoad ref="upLoads" />
		<xpertTabbar />
	</div>
</template>

<script setup>
	import { ref, onMounted } from "vue";
	import xpertTabbar from "@/components/tabBar/xpertTabbar.vue";
	import xpertNavBar from "@/components/navBar/xpertNavBar.vue";
	import router from "@/router/index.js";
	import UpLoad from "./upLoad.vue";
	import ButtonDiffuse from "@/components/Button/ButtonDiffuse.vue";
	let statusTab = ref(1);
	let upLoads = ref("");
	onMounted(() => {
		window.addEventListener("scroll", handleScroll);
	});

	// 去OrderManagement
	const goOrder = () => {
		router.push({ path: "/UseOrderManagement" });
	};
	// goSystem
	const goSystem = () => {
		router.push({ path: "/System" });
	};
	// goSystem
	// const FeedHelp = () => {
	// 	router.push({ path: "/System" });
	// };
	// 显示上传框
	const Feedback = () => {
		upLoads.value.upLoadVisible = true;
	};
	// 这个是当头部导航栏滑倒下面时给tabr加个背景
	const handleScroll = () => {
		const scrollTop = document.documentElement.scrollTop;
		if (scrollTop > 0) {
			statusTab.value = 2;
		} else {
			statusTab.value = 1;
		}
	};
</script>
<style scoped>
	@import "./index.scss";
</style>
